﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="InfoContation3.ascx.cs" Inherits="Rison.Web.ascx.InfoContation3" %>
<asp:DataList ID="dlInfos" runat="server" DataKeyField="MID" RepeatColumns="2" ItemStyle-HorizontalAlign="Right" CellPadding="0" CellSpacing="0" OnItemDataBound="dlInfos_OnItemDataBound" GridLines="none" Width="100%">
    <ItemTemplate>
       <div style="width:230px;height:424px;float:right; padding-left:2px; padding-right:0px; margin-bottom:12px;">
            <div style="width:7px;height:27px; float:left; background:url(<%=UrlBase %>style/image/index3/titleLeft.gif) no-repeat center;"></div>
            <div style="width:103px;height:27px; float:left; line-height:27px; text-align:center; font-size:14px; font-weight:bold; background:url(<%=UrlBase %>style/image/index3/titleBg.gif);">
                <a href="<%=UrlBase %>view/ModuleInfosView.aspx?mid=<%# DataBinder.Eval(Container.DataItem, "mid")%>" style="height:27px;color:#141414; line-height:27px; font-size:15px; font-weight:bold; text-decoration:none;"><%# DataBinder.Eval(Container.DataItem, "title")%></a>
            </div>
            <div style="width:7px;height:27px; float:left; background:url(<%=UrlBase %>style/image/index3/titleRight.gif) no-repeat center;"></div>
            <div style="width:113px;height:27px;float:left; text-align:right; background:url(<%=UrlBase %>style/image/index3/titleRightBg.gif);">
                <img alt="更多..." src="<%=UrlBase %>style/image/more.gif" style="width:41px; height:11px; border:0px; cursor:pointer; margin-top:8px; margin-right:5px; "
                     onclick="location.href='<%=UrlBase %>view/ModuleInfosView.aspx?mid=<%# DataBinder.Eval(Container.DataItem, "mid")%>';" />
            </div>
            <div id="contentWindow">
                <div style="float:left; margin-left:2px; margin-top:2px; margin-bottom:0px;width:95px; ">
                    <img alt="" src="" style="width:95px;height:83px;border:0px; display:none;"  />
                    <asp:Image ID="frameImg" runat="server" AlternateText="" style="width:93px;height:75px;border:0px; cursor:pointer;border:1px solid #ababab; " />                    
                    <div style="width:95px;height:12px; float:left; text-align:center;"><asp:Label ID="labImgSubject" runat="server"></asp:Label></div>
                </div>
                <div style="float:left;width:128px;">
                    <asp:GridView ID="gvInfos1" runat="server" AllowPaging="false" AllowSorting="false" AutoGenerateColumns="false" 
                        Width="100%" ShowHeader="false" GridLines="none" RowStyle-Height="23px" RowStyle-VerticalAlign="Middle" CssClass="infoContainer2" >                      
                        <Columns>
                            <asp:TemplateField ItemStyle-Width="20px" ItemStyle-VerticalAlign="Middle" ItemStyle-Height="23px">
                                <ItemTemplate>
                                    <img alt="" src="<%=UrlBase %>style/image/dian.gif" style="width:4px;height:4px;border:0px; margin-top:5px;"/>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-HorizontalAlign="Left">
                                <ItemTemplate>
                                    <a href="<%=UrlBase %>view/InfoBrowseView.aspx?infoId=<%# DataBinder.Eval(Container.DataItem, "InfoId")%>&mid=<%# DataBinder.Eval(Container.DataItem, "moduleId")%>" target="_blank"><%# DataBinder.Eval(Container.DataItem, "Subject")%></a>
                                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                        <tr style="height:1px; background:url(<%=UrlBase %>style/image/lineBG.gif);">
                                            <td style="height:1px"><img alt="" src="<%=UrlBase %>style/image/lineBG.gif" style="width:12px;height:1px;border:0px;" /></td>
                                        </tr>                 
                                    </table>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="CreateDate" ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:MM-dd}"  />
                        </Columns>
                    </asp:GridView>
                </div>
                <div style="width:228px;">
                    <asp:GridView ID="gvInfos2" runat="server" AllowPaging="false" AllowSorting="false" AutoGenerateColumns="false" 
                        Width="100%" ShowHeader="false" GridLines="none" RowStyle-Height="20px" RowStyle-VerticalAlign="Middle" CssClass="infoContainer2">                        
                        <Columns>
                            <asp:TemplateField ItemStyle-Width="20px" ItemStyle-VerticalAlign="Middle">
                                <ItemTemplate>
                                    <img alt="" src="<%=UrlBase %>style/image/dian.gif" width="4px" height="4px"/>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-HorizontalAlign="Left">
                                <ItemTemplate>
                                    <a href="<%=UrlBase %>view/InfoBrowseView.aspx?infoId=<%# DataBinder.Eval(Container.DataItem, "InfoId")%>&mid=<%# DataBinder.Eval(Container.DataItem, "moduleId")%>" target="_blank"><%# DataBinder.Eval(Container.DataItem, "Subject")%></a>
                                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                        <tr style="height:1px; background:url(<%=UrlBase %>style/image/lineBG.gif);">
                                            <td style="height:1px"><img alt="" src="<%=UrlBase %>style/image/lineBG.gif" style="width:12px;height:1px;border:0px;" /></td>
                                        </tr>                          
                                    </table>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="CreateDate" ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:MM-dd}"  />
                        </Columns>
                    </asp:GridView>  
                </div>
            </div>
       </div>
    </ItemTemplate>
</asp:DataList>
